<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册页面</title>
    <link rel="stylesheet" href="/blog/Public/css/bootstrap.min.css">
    <style>
        body {
            margin: 0px auto;
            width: 640px;
        }

        .head {
            width: 640px;
            height: 80px;
            background: forestgreen;
            text-align: center;
        }

        .head h1 {
            padding: 20px;
            color: #ececec;
        }
        .box{
            box-shadow: 0 0 3px #000;
        }
        .main{
            padding: 40px 40px;
        }
        .button{
            text-align: center;
        }
    </style>
</head>
<body>
<div class="box">
    <div class="head">
        <h1>注册页面</h1>
    </div>
    <div class="main">
        <form enctype="multipart/form-data" action ="<?php echo U('User/register');?>" method="post">
            <div class="form-group">
                <label for="username">用户名*</label>
                <input type="text" class="form-control" id="username" placeholder="用户名" name="username">
            </div>

            <div class="form-group">
                <label for="password">登录密码*</label>
                <input type="password" class="form-control" id="password" placeholder="登录密码" name="password">
            </div>
            <div class="form-group">
                <label for="password2">密码确认*</label>
                <input type="password" class="form-control" id="password2" placeholder="密码确认" name="confirmPassword">
            </div>
            <div class="form-group">
                <label>性别*</label>
                <label class="radio-inline">
                    <input type="radio" name="sex" value="man"> 男
                </label>
                <label class="radio-inline">
                    <input type="radio" name="sex" value="girl"> 女
                </label>
            </div>
            <div class="form-group">
                <label for="password2">E-mail*</label>
                <input type="email" class="form-control" id="email" placeholder="输入邮箱" name="email">
            </div>
            <div class="form-group">
                <label for="address">通讯地址*</label>
                <textarea class="form-control" rows="3" id="address" name="address"></textarea>
            </div>
            <div class="form-group">
                <label for="description">个人描述</label>
                <textarea class="form-control" rows="3" id="description" name="description"></textarea>
            </div>
            <div class="form-group">
                <label for="photo">上传头像</label>
                <input type="file" class="form-control" id="photo" placeholder="输入邮箱" name="photo">
            </div>
            <div class="form-group button">
                <input class="btn btn-primary" type="submit" value="注册">
            </div>
        </form>
    </div>
</div>
</body>
</html>